package com.flyemu.share.entity.fund;

import com.fasterxml.jackson.annotation.JsonInclude;
import jakarta.persistence.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicUpdate;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @功能描述: 付款单明细
 * @创建时间: 2024年04月28日
 * @公司官网: www.fenxi365.com
 * @公司信息: 纷析云（杭州）科技有限公司
 * @公司介绍: 专注于财务相关软件开发, 企业会计自动化解决方案
 */@JsonInclude()
@Getter
@Setter
@Entity
@NoArgsConstructor
@Table
@DynamicUpdate
public class OrderPaymentItem {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Comment("付款单ID")
    private Long paymentId;

    @Comment("账户ID")
    private Long accountId;


    @Comment("备注")
    private String remarks;

    @Column(nullable = false)
    private Long accountBookId;

    @Column(nullable = false)
    private Long merchantId;
    @Comment("关联采购ID")
    private Long businessId;
    @Comment("关联采购编号")
    private String businessNo;
    @Comment("业务类型")
    private Integer businessType;
    @Comment("业务日期")
    private LocalDate businessDate;

    @Comment("单据金额")
    private BigDecimal documentAmount;

    @Comment("已核销金额")
    private BigDecimal verifiedAmount;

    @Comment("未核销金额")
    private BigDecimal unverifiedAmount;

    @Comment("本次核销金额")
    private BigDecimal currentVerifyAmount;
}
